﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using BCDto.Utils;

namespace BCDto.Trading.Purchase.GoodsPurchaseContractAttachment
{
    /// <summary>
    /// 商品采购合同附件
    /// </summary>
    public class GoodsPurchaseContractAttachmentRequestDto
    {
        /// <summary>
        /// 商品采购单Id
        /// </summary>		
        [Display(Name = "商品采购单Id")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public long GoodsPurchaseId { get; set; }
        /// <summary>
        /// 附件地址
        /// </summary>		
        [Display(Name = "附件地址")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [StringLength(1000, MinimumLength = 6, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
        [Image]
        public string AttachmentAddress { get; set; }
    }
}

